package com.zxy.ziems.server.foms.service;

import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class TenantUtil {

    private static String tenantId;

    @Value("${zifoms-server.tenant-id}")
    private String tenant_id;

    @PostConstruct
    private void init() {
        TenantUtil.tenantId = tenant_id;
    }

    public static String getTenantId() {
        return tenantId;
    }
}
